package com.alinesno.cloud.gateway.core.dispather.factory;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.alinesno.cloud.gateway.core.dispather.BaseHandle;

/**
 * HTTP请求分发器
 * 
 * @author WeiXiaoJin
 * @sine 2018年8月5日 下午12:48:27
 */
public interface HttpServiceFactory extends BaseHandle {

	/**
	 * 接口请求基础分发器
	 * 
	 * @param uniquePrefix     唯一值 
	 * @param model        模块
	 * @param method       方法
	 * @param frontEndReq
	 * @param frontEndResp
	 * @param map 
	 * @return
	 */
	Object handler(String uniquePrefix, 
			String model, 
			String method, 
			HttpServletRequest frontEndReq,
			HttpServletResponse frontEndResp, 
			Map<String, Object> params) ;

}